package com.yanqu.road.entity.log;

import com.yanqu.road.entity.FieldTypeAnnotation;
import com.yanqu.road.entity.log.maidian.BaseLogEntity;

import java.util.Date;

@FieldTypeAnnotation(tableName = "t_l_patrons_contract", autoSave = true, dataUpload = true, eventName = "guest_contract")
public class LogPatronsContract extends BaseLogEntity {
    @FieldTypeAnnotation(desc = "用户id", isIndex = true)
    private long userId;
    @FieldTypeAnnotation(desc = "门客id", isIndex = true, dataAttribute = "guest_id")
    private int patronsId;
    @FieldTypeAnnotation(desc = "美女id", dataAttribute = "intimate_name")
    private int beautyId;
    @FieldTypeAnnotation(desc = "孔位", dataAttribute = "guest_contid")
    private int pos;
    @FieldTypeAnnotation(desc = "时间")
    private Date logTime;


    public LogPatronsContract(long userId, int patronsId, int beautyId, int pos) {
        this.userId = userId;
        this.patronsId = patronsId;
        this.beautyId = beautyId;
        this.pos = pos;
        this.logTime = new Date();
    }

    @Override
    public long getUserId() {
        return userId;
    }
}
